<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="../css/docs.css" type="text/css" rel="stylesheet" />
<link href="../css/prettify.css" type="text/css" rel="stylesheet" />
<script src="../js/prettify.js" type="text/javascript"></script></head>
<body onLoad="prettyPrint()">
<div class="g-unit" id="doc-content">
<div id="api-info-block">
    <div class="api-level">H3C CAS云管理平台</div>
  </div>
  <div id="jd-header">
    <h1>查询快照策略详细信息</h1>
  </div>
</div>
<div id="jd-content">
<div class="jd-descr">
<p>查询指定ID快照策略的详细信息。</p>
<h2><a name="uri"></a>接口 URI</h2>
<p>/cas/casrs/snapStrategy/snapStrategyInfo/{<span class="jd-typecol">snapId</span>}</p>
<h2><a name="access"></a>访问方法</h2>
<dl>
  <dt><b>HTTP 方法</b></dt>
  <dd>GET</dd>
  <dt><b>消息体</b></dt>
  <div class="source">
  	<pre class="prettyprint lang-xml">无</pre>
  </div>
</dl>

<dt><a name="detail"></a><b>元素含义</b></dt>
  <table id="pubmethods" class="jd-sumtable">
    <tbody>
      <tr>
        <th colspan="2">路径参数（Path Parameter）</th>
      </tr>
      <tr>
        <td class="jd-typecol">snapId</td>
        <td width="100%" class="jd-linkcol"><span class="sympad">快照策略 ID。</span>
            <div class="jd-descrdiv">长整数（long）类型，必须。</div></td>
      </tr>
  </table>

<h2><a name="result"></a>返回结果</h2>
<dl>
  <dt><b> 状态码</b></dt>
  <dd>
  <ul>
    <li>200 OK：成功。</li>
    </ul>
  <strong>回应</strong></dd>
  <div class="source">
    <pre class="prettyprint lang-xml">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;snapStrategy&gt;<br>  &lt;id&gt;2&lt;/id&gt;<br>  &lt;name&gt;名称&lt;/name&gt;<br>  &lt;desc&gt;描述&lt;/desc&gt;<br>  &lt;state&gt;0&lt;/state&gt;<br>  &lt;flag&gt;0&lt;/flag&gt;<br>  &lt;maxSnapshotNum&gt;4&lt;/maxSnapshotNum&gt;<br>  &lt;frequency&gt;0&lt;/frequency&gt;<br>  &lt;day&gt;5&lt;/day&gt;<br>  &lt;hour&gt;7&lt;/hour&gt;<br>  &lt;minutes&gt;0&lt;/minutes&gt;<br>  &lt;snapStrategyVm&gt;<br>    &lt;domainId&gt;312&lt;/domainId&gt;<br>    &lt;snapStrategyId&gt;2&lt;/snapStrategyId&gt;<br>  &lt;/snapStrategyVm&gt;<br>  &lt;snapStrategyVm&gt;<br>    &lt;domainId&gt;313&lt;/domainId&gt;<br>    &lt;snapStrategyId&gt;2&lt;/snapStrategyId&gt;<br>  &lt;/snapStrategyVm&gt;<br>&lt;/snapStrategy&gt;</pre>
  </div>
</dl>
<dt><a name="detail"></a><b>元素含义</b></dt>
  <table id="pubmethods" class="jd-sumtable">
    <tbody>
      <tr>
        <th colspan="2"><span class="prettyprint lang-xml">snapStrategy</span>各子元素</th>
      </tr>
	  <tr>
        <td class="jd-typecol"><span class="prettyprint lang-xml">id</span></td>
        <td width="100%" class="jd-linkcol"><span class="sympad">快照策略id。</span>
            <div class="jd-descrdiv">长整型（Long）类型。</div></td>
      </tr>
      <tr class="alt-color">
        <td class="jd-typecol"><span class="prettyprint lang-xml">name</span></td>
        <td width="100%" class="jd-linkcol"><span class="sympad">备份策略名称，名称的最大输入长度为32个字符，且只允许输入汉字、字母、数字、减号、下划线及点。</span>
            <div class="jd-descrdiv">字符串（String）类型。</div></td>
      </tr>
      <tr>
        <td class="jd-typecol"><span class="prettyprint lang-xml">desc</span></td>
        <td class="jd-linkcol"><span class="sympad">描述,最大输入长度为120个字符。</span>
          <div class="jd-descrdiv">字符串（String）类型。</div></td>
      </tr>
      <tr class="alt-color">
        <td class="jd-typecol"><span class="prettyprint lang-xml">state</span></td>
        <td class="jd-linkcol"><span class="sympad">快照策略是否生效  1：生效，0：无效。</span>
            <div class="jd-descrdiv">整型（Integer）类型。</div></td>
      </tr>
	  <tr>
        <td class="jd-typecol"><span class="prettyprint lang-xml">flag</span></td>
        <td class="jd-linkcol"><span class="sympad">是否快照内存标志，0：快照磁盘，1：快照内存。</span>
          <div class="jd-descrdiv">整型（Integer）类型。</div></td>
      </tr>
      <tr class="alt-color">
        <td class="jd-typecol"><span class="prettyprint lang-xml">maxSnapshotNum</span></td>
        <td class="jd-linkcol"><span class="sympad">允许快照保存的最大个数, 0为不限制，大于0为限制保留最大快照个数。</span>
          <div class="jd-descrdiv">整型（Integer）类型。</div></td>
      </tr>
      <tr>
        <td class="jd-typecol"><span class="prettyprint lang-xml">frequency</span></td>
        <td class="jd-linkcol"><span class="sympad">频率 ：0：每月:1：每周，2：每日。</span>
            <div class="jd-descrdiv">整型（Integer）类型。</div></td>
      </tr>
      <tr class="alt-color">
        <td class="jd-typecol"><span class="prettyprint lang-xml">hour</span></td>
        <td class="jd-linkcol"><span class="sympad">自动快照的时间：小时。</span>
            <div class="jd-descrdiv">整型（Integer）类型。</div></td>
      </tr>
      <tr>
        <td class="jd-typecol"><span class="prettyprint lang-xml">minutes</span></td>
        <td class="jd-linkcol"><span class="sympad">自动快照的时间：分钟。</span>
            <div class="jd-descrdiv">整型（Integer）类型。</div></td>
      </tr>
      
      <tr class="alt-color">
        <td class="jd-typecol"><span class="prettyprint lang-xml">day</span></td>
        <td class="jd-linkcol"><span class="sympad">自动快照的日期：天 。</span>
            <div class="jd-descrdiv">整型（Integer）类型。</div></td>
      </tr>
    </table>
	<table class="jd-sumtable" id="pubmethods">
      <tbody>
        <tr>
          <th colspan="2"><span class="prettyprint lang-xml">snapStrategyVm</span>各子元素</th>
        <tr>
          <td class="jd-typecol"><span class="prettyprint lang-xml">domainId</span></td>
          <td class="jd-linkcol" width="100%"><span class="sympad">虚拟机 ID。</span>
              <div class="jd-descrdiv">长整型（Long）类型。</div></td>
        </tr>
        <tr class="alt-color">
          <td class="jd-typecol"><span class="prettyprint lang-xml">domainName</span></td>
          <td class="jd-linkcol"><span class="sympad">虚拟机名称。</span>
              <div class="jd-descrdiv">字符串（String）类型。</div></td>
        </tr>
        <tr>
          <td class="jd-typecol"><span class="prettyprint lang-xml">title</span></td>
          <td class="jd-linkcol"><span class="sympad">虚拟机显示名称。</span>
              <div class="jd-descrdiv">字符串（String）类型。</div></td>
        </tr>
        <tr class="alt-color">
          <td class="jd-typecol"><span class="prettyprint lang-xml">domainDesc</span></td>
          <td class="jd-linkcol"><span class="sympad">虚拟机描述。</span>
              <div class="jd-descrdiv">字符串（String）类型。</div></td>
        </tr>
    </table>
    <h2><a name="example"></a>应用举例</h2>
    <p>查询ID为”2“的快照策略详细信息。</p>
    <dl>
      <dt><b>请求</b></dt>
      <div class="source">
        <pre class="prettyprint lang-xml">GET http://192.168.10.80:8080/cas/casrs/snapStrategy/snapStrategyInfo/2
accept: application/xml
</pre>
      </div>
      <dt><b>回应</b></dt>
      <div class="source"><pre class="prettyprint lang-xml">HTTP/1.1 200 OK<br>Content-Type: application/xml<br>Content-Length: 448<br>Date: Wed, 17 Sep 2014 07:18:45 GMT<br>Server: H3C-CVM<br><br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;snapStrategy&gt;<br>  &lt;id&gt;2&lt;/id&gt;<br>  &lt;name&gt;名称&lt;/name&gt;<br>  &lt;desc&gt;描述&lt;/desc&gt;<br>  &lt;state&gt;0&lt;/state&gt;<br>  &lt;flag&gt;0&lt;/flag&gt;<br>  &lt;maxSnapshotNum&gt;4&lt;/maxSnapshotNum&gt;<br>  &lt;frequency&gt;0&lt;/frequency&gt;<br>  &lt;day&gt;5&lt;/day&gt;<br>  &lt;hour&gt;7&lt;/hour&gt;<br>  &lt;minutes&gt;0&lt;/minutes&gt;<br>  &lt;snapStrategyVm&gt;<br>    &lt;domainId&gt;312&lt;/domainId&gt;<br>    &lt;snapStrategyId&gt;2&lt;/snapStrategyId&gt;<br>  &lt;/snapStrategyVm&gt;<br>  &lt;snapStrategyVm&gt;<br>    &lt;domainId&gt;313&lt;/domainId&gt;<br>    &lt;snapStrategyId&gt;2&lt;/snapStrategyId&gt;<br>  &lt;/snapStrategyVm&gt;<br>&lt;/snapStrategy&gt;<br></pre>
      </div>
    </dl>
    
</div>
</div>
</div>
</body>
</html>